const express = require("express");
const db = require("../db/index")
const Students = require("../models/students")
const router = new express.Router();


router.post("./students_info", async (req, res) => {
    console.log(req.body)
    await db;

    try {
        await Students.creat(req.body);
        res.send('学生信息提交成功！！');
    } catch (e) {
        console.log(e);
        res.send('请重新输入！！')
    }

})



//baolu
module.exports = router;